﻿using Blogs.ModelDB.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blogs.ModelDB
{
    public partial class BlogCommentSet
    {
        public BlogCommentDTO ToDTO()
        {
            return new BlogCommentDTO()
            {
                Id = this.Id,
                BlogsId = this.BlogsId,
                BlogUsersId = this.BlogUsersId,
                CommentID = this.CommentID,
                Content = this.Content,
                CreateTime = this.CreateTime,
                UpTime = this.UpTime,
                ContentLevy = this.ContentLevy,
                ReplyUserID = this.ReplyUserID,
                ReplyUserName = this.ReplyUserName,
                IsDel = this.IsDel,
                IsInitial = this.IsInitial
            };
        }
    }
}
